package com.atguigu.orderservice.client;

import com.atguigu.common.vo.CommonCourseInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-edu")
@Component
public interface EduClient {

    //根据课程id查询课程信息，为了生成订单使用
    @GetMapping("/eduservice/frontcourse/getCommonCourseInfo/{courseId}")
    public CommonCourseInfoVo getCommonCourseInfo(@PathVariable("courseId") String courseId);

}
